export interface ResponseData {
    code: number;
    message: string;
    ok: boolean;
}
// 菜单列表的数据类型
export interface MenuData {
    code: string | null;
    createTime: string;
    id: number;
    level: number;
    name: string;
    pid: number;
    select: boolean;
    status: number | null;
    toCode: string | null;
    type: number;
    updateTime: string;
    children: MenuList[];
}
export type MenuList = MenuData[];

// 服务器返回的数据类型
export interface MenuResponse extends ResponseData {
    data: MenuList;
}

// 添加与修改菜单携带的参数
export interface MenuParams {
    id?: number;
    code: string;
    name: string;
    pid: number | string;
    level: number | string;
}
